function Person(id, name, address, age, dateOfBirth, nationality, isMarried) {
    this.id = id;
    this.name = name;
    this.address = address;
    this.age = age;
    this.dateOfBirth = dateOfBirth;
    this.nationality = nationality;
    this.isMarried = isMarried;

    return this;
}

Person.prototype.toString = function() {
    return "Id=" + this.id + " " + "Name=" + this.name + " " + "Address=" + this.address + " " + "Age=" + this.age + " dateOfBirth=" + this.dateOfBirth + " Nationality=[" + this.nationality + "]" + " isMarried=" + String(this.isMarried);
};